<!--
/**************************************************
* @ orderemergencyquery.jsp
*
* Copyright   2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/04/11, owen
*  
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="../../../common.jsp" %>
<%@ taglib uri="/page.util.gs.hitrust.com/taglibs/page" prefix="page"%>
<html>
<head>
<title>应急采购信息查询</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="<%=root%>/css/caigouxitong.css" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=root%>/js/calendar.js"></SCRIPT>
<%
	HashMap tMap = (HashMap)request.getAttribute("orderdept");
	ArrayList tOrderDeptList = (ArrayList)tMap.get("organization");
	ResultProcess tOrder = (ResultProcess)request.getAttribute("order");
	ArrayList tList = new ArrayList();
	String [] tStr = null;
	String tReQuery = (String)request.getAttribute("requery");

%>

<%
	ArrayList tManuf1 = (ArrayList)request.getAttribute("manufacture1");
	HashMap tMap1 = (HashMap)request.getAttribute("manufacturetyp2");
	
	HashMap tMap2 = (HashMap)request.getAttribute("manufacturetyp3");
	
%>
<script>
    
	var counter;
	function process(val){
		if(val == 'Q' || val == 'Qre'){
				  if (val == 'Qre') {
					<%
					    if(tReQuery!=null && tReQuery.equals("true")){
					%>
						orderemergencyform.action = "<%= response.encodeURL(request.getContextPath() + "/A110202.do") %>";
			    		orderemergencyform.submit();
			    	<%}%>
		    	} else if (val == 'Q') {
						var tStr = "";		
						var tEnd = "";				
						if(!isEmpty(orderemergencyform.firstdate.value)){
							tStr = orderemergencyform.firstdate.value.substr(0,4) + orderemergencyform.firstdate.value.substr(5,2) + orderemergencyform.firstdate.value.substr(8,2);
						}
						if(!isEmpty(orderemergencyform.lastdate.value)){
							tEnd = orderemergencyform.lastdate.value.substr(0,4) + orderemergencyform.lastdate.value.substr(5,2) + orderemergencyform.lastdate.value.substr(8,2);						
						}
						if(parseInt(tStr) > parseInt(tEnd)){
								alert("订单创建周期的开始日期不能大于截止日期！");
								return false;
						}		
						
						orderemergencyform.action = "<%= response.encodeURL(request.getContextPath() + "/A110202.do") %>";
			    		orderemergencyform.submit();
		    	}
    	
		}else if(val == 'C'){

			orderemergencyform.goodsid.value ="";
			orderemergencyform.orderStatus.value="00";			
			orderemergencyform.orderDeptId.value="0000";
			orderemergencyform.category.value="";
			orderemergencyform.orderStatus.value="";
						
			orderemergencyform.concentricityid.value = "";
			orderemergencyform.providerId.value = "";
			orderemergencyform.manufInfo.value = "";
			orderemergencyform.firstdate.value = "";						
			orderemergencyform.lastdate.value = "";		
			
			orderemergencyform.manuftype1.value="0";
			var listbox2 = document.getElementById("manuftype2");
			listbox2.length = 0;
			var option2 = new Option();
			option2.text = "---二级---";
			option2.value = "0";			
			listbox2.options[listbox2.length] = option2;
			
			var listbox3 = document.getElementById("manuftype3");
			listbox3.length = 0;
			var option3 = new Option();
			option3.text = "---三级---";
			option3.value = "0";			
			listbox3.options[listbox3.length] = option3;							
			return;
		}else if(val == 'T'){
			  var orderId;					
					  if(document.pager.orderIds != null){
						for(i=0; i<document.pager.orderIds.length;i++){
							if(document.pager.orderIds[i].checked){
							
								orderId=document.pager.orderIds[i].value;
								document.frmtijiao.orderIds[i].value=orderId;
								document.frmtijiao.orderIds[i].checked = true;
								//alert(document.frmtijiao.orderIds[i].value);
							}
						}
					   } 
					if(document.pager.orderIds.checked==true){
								//document.form2.orderdetailId.checked = true;
								orderId=document.pager.orderIds.value;
					}
					 if(orderId==null){
				       alert("请选择一个取消的申购单。");
				       return false;
				       } 
				     if(confirm("是否确定取消所选申购单信息？")){
				       document.frmtijiao.orderId.value=document.ordercancelform.orderId.value;		
				       document.frmtijiao.orderStatus.value=document.ordercancelform.orderStatus.value;		
				       document.frmtijiao.orderDeptId.value=document.ordercancelform.orderDeptId.value;		
				       document.frmtijiao.deliverGoodsAddrId.value=document.ordercancelform.deliverGoodsAddrId.value;		
				       document.frmtijiao.concentricityId.value=document.ordercancelform.concentricityId.value;		
				       document.frmtijiao.manufInfo.value=document.ordercancelform.manufInfo.value;		
				       document.frmtijiao.orderCreateDateStr.value=document.ordercancelform.orderCreateDateStr.value;		
				       document.frmtijiao.orderCreateDateEnd.value=document.ordercancelform.orderCreateDateEnd.value;		
				       
					   document.frmtijiao.submit();
					   //alert("所选申购单明细状态设置为‘已取消’！");
				    }else{
					  return false;
				    }
		} else if(val == 'P'){
			if(confirm("是否确定打印？")){
				print_bill();//ordermanufacturevdetail.action = "<%=root%>/A100305.do";			
			}else{
				return false;
			}
		}
	}
	
	function del(temp1,temp2){
     if (confirm("是否删除应急采购单信息？")) {
         //alert(temp1);
         //alert(temp2);
         frmtijiao.oredertempid.value=temp1;
         frmtijiao.orderdetailid.value=temp2;
         
         document.frmtijiao.orderDeptId.value=document.orderemergencyform.orderDeptId.value;		
		 document.frmtijiao.goodsid.value=document.orderemergencyform.goodsid.value;		
		 document.frmtijiao.category.value=document.orderemergencyform.category.value;		
		 document.frmtijiao.orderStatus.value=document.orderemergencyform.orderStatus.value;		
		 document.frmtijiao.concentricityid.value=document.orderemergencyform.concentricityid.value;		
		 document.frmtijiao.providerId.value=document.orderemergencyform.providerId.value;		
		 document.frmtijiao.manuftype1.value=document.orderemergencyform.manuftype1.value;		
		 document.frmtijiao.manuftype2.value=document.orderemergencyform.manuftype2.value;		
		 document.frmtijiao.manuftype3.value=document.orderemergencyform.manuftype3.value;		
		 document.frmtijiao.manufInfo.value=document.orderemergencyform.manufInfo.value;		
		 document.frmtijiao.firstdate.value=document.orderemergencyform.firstdate.value;		
		 document.frmtijiao.lastdate.value=document.orderemergencyform.lastdate.value;		
	    	
				       
     //delform.orgid.value=temp;
         frmtijiao.action='<%= response.encodeURL(request.getContextPath() + "/A110203.do") %>';
         frmtijiao.submit();
         //alert("应急采购单信息删除成功！");
         return true;
   }
}
	
	function change(optval){
  		var val = optval;
		if(val=='0000'){
			var listbox = document.getElementById("deliverGoodsAddrId");
			listbox.length = 0;
			var option = new Option();
			option.text = "---全部---";
			option.value = "0000";			
			listbox.options[listbox.length] = option;

		}else{
  	<%
  		if(tMap!=null){
	 	   	Collection tCollection = tMap.keySet();
	        Iterator tIterator = tCollection.iterator();
  		       while(tIterator.hasNext()){
  		           String tKey = (String)tIterator.next();
  		           tList = (ArrayList)tMap.get(tKey);
  	%>
  				if(val == '<%=tKey%>'){
	  				var counter;
	  				var listbox = document.getElementById("deliverGoodsAddrId");
					listbox.length = 0;
					var option = new Option();
					option.text = "---全部---";
					option.value = "0000";			
					listbox.options[listbox.length] = option;			  											
	<%					
						for(int n=0;n<tList.size();n++){
						    tStr = (String[])tList.get(n);
						    String addrId = tStr[0];
						    String addrName = tStr[1];
	%>				
							var temp1 = '<%=addrId%>';
							var temp2 = '<%=addrName%>';
							var option = new Option();
							option.value = temp1;
							option.text = temp2;
							listbox.options[listbox.length] = option;						
	<%
						}
	%>
  				}
  	<%
  		    }
  		       
  		}
  	%>
  		}	
	}	
	
	function change1(optval){
  		var val = optval;
		if(val=='0'){
			var listbox = document.getElementById("manuftype2");
			listbox.length = 0;
			var option = new Option();
			option.text = "---二级---";
			option.value = "0";			
			listbox.options[listbox.length] = option;
          change2(optval);
		}else{
  	<%
  		if(tMap1 !=null){
	 	   	Collection tCollection = tMap1.keySet();
	        Iterator tIterator = tCollection.iterator();
  		       while(tIterator.hasNext()){
  		           String tKey = (String)tIterator.next();
  		           tList = (ArrayList)tMap1.get(tKey);
  	%>
  				if(val == '<%=tKey%>'){
	  				var counter;
	  				var listbox = document.getElementById("manuftype2");
	  				listbox.length = 0;  		  	  	
							var option = new Option();
							option.value = "0";
							option.text = "---二级---";
							listbox.options[listbox.length] = option;			  											
	<%					
						for(int n=0;n<tList.size();n++){
						    GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tList.get(n);
						    String categoryId = tGSManufactureBean.getGs_manufacture_category_id();
						    String categoryName = tGSManufactureBean.getGs_manufacture_category_name();
	%>				
							var temp1 = '<%=categoryId%>';
							var temp2 = '<%=categoryName%>';
							var option = new Option();
							option.value = temp1;
							option.text = temp2;
							listbox.options[listbox.length] = option;						
	<%
						}
	%>
					change2("0");
  				}
  	<%
  		    }
  		       
  		}
  	%>
  	}	
	}	
	function change2(optval){
  		var val = optval;
		if(val=='0'){
			var listbox = document.getElementById("manuftype3");
			listbox.length = 0;
			var option = new Option();
			option.text = "---三级---";
			option.value = "0";			
			listbox.options[listbox.length] = option;

		}else{
  	<%
  		if(tMap2 !=null){
	 	   	Collection tCollection = tMap2.keySet();
	        Iterator tIterator = tCollection.iterator();
  		       while(tIterator.hasNext()){
  		           String tKey = (String)tIterator.next();
  		           tList = (ArrayList)tMap2.get(tKey);
  	%>
  				if(val == '<%=tKey%>'){
	  				var counter;
	  				var listbox = document.getElementById("manuftype3");
	  				listbox.length = 0;  		  	  	
			var option = new Option();
			option.text = "---三级---";
			option.value = "0";			
			listbox.options[listbox.length] = option;	  											
	<%					
						for(int n=0;n<tList.size();n++){
						    GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tList.get(n);
						    String categoryId = tGSManufactureBean.getGs_manufacture_category_id();
						    String categoryName = tGSManufactureBean.getGs_manufacture_category_name();
	%>				
							var temp1 = '<%=categoryId%>';
							var temp2 = '<%=categoryName%>';
							var option = new Option();
							option.value = temp1;
							option.text = temp2;
							listbox.options[listbox.length] = option;						
	<%
						}
	%>
  				}
  	<%
  		    }
  		       
  		}
  	%>
  	}		
	}					
</script>

</head>

<body BGCOLOR="#f2f2f2"	text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="process('Qre')">
<form name=orderemergencyform method="get" >
<p><br></p>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
		<td height="20">
			<table width="100%" border="0" cellspacing="0" cellpadding="1">
				<tr height="20">
					<td height="30" width="758" class="mtxt_black">应急采购信息查询
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="bg_line" height="2"></td>
	</tr>
</table>
<br>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr> 
		<td> 
			<table class=bg_table id=tableId	cellspacing=1 cellpadding=0 style="padding-left:5;padding-right:5" width=100% align=center border=0>
				
				<TR height=20>							
					<TD class="bg_column" align=center>订货单位</TD>
					<TD left=right class="bg_row_odd">
						<select name="orderDeptId">					
						<option value="0000">---全部---</option>
						<%
							String tOrderDept = request.getParameter("orderDeptId");
							if(tOrderDeptList != null && tOrderDeptList.size() > 0 ){
								for(int i=0; i<tOrderDeptList.size(); i++){
								    String[] temp = (String[])tOrderDeptList.get(i);
									if(tOrderDept != null && tOrderDept.equals(temp[0])){
						%>
										<option value="<%=temp[0]%>" selected>
										<%=temp[1]%></option>
						<%				    
									}else{
						%>
										<option value="<%=temp[0]%>"><%=temp[1]%></option>
						<%			
									}
								}
							}
						%>
						</select>
					</TD>
					<TD class="bg_column" align=center>送货单号</TD>
					<TD align=left class="bg_row_odd" >
					<input type="text" name="goodsid" maxlength="20" value="<%=request.getParameter("goodsid")==null?"":request.getParameter("goodsid")%>">				
					</TD>						
				</TR>	
				
				<TR height=20>
					<TD class="bg_column" align=center>类型</TD>
					<TD align=left class="bg_row_odd">
					<select name="category">
							<option value="" selected>--全部--</option>
							<%
							String tCategory = (String)request.getAttribute("category");
							String[][] tCategoryTag = GSBaseManager.getAllOrderCategoryTag();
							if(tCategoryTag != null && tCategoryTag.length > 0 ){
								for(int i=0; i<tCategoryTag.length; i++){
									String[] temp = tCategoryTag[i];
									if(tCategory != null && tCategory.equals(temp[0])){
						%>
										<option value="<%=temp[0]%>" selected>
										<%=temp[1]%></option>
						<%				    
									}else{
						%>
										<option value="<%=temp[0]%>" >
										<%=temp[1]%></option>
						<%			
									}
								}
							}
						%>
							
					</select>
					</TD>
					<TD class="bg_column" align=center>状态</TD>
					<TD align=left class="bg_row_odd">
					<select name="orderStatus">
							<option value="" selected>--全部--</option>
							<%
							String tOrderStatus = (String)request.getAttribute("orderStatus");
							String[][] tOrderStatusTag = GSBaseManager.getOrderDetailStatusTag();
							if(tOrderStatusTag != null && tOrderStatusTag.length > 0 ){
								for(int i=0; i<tOrderStatusTag.length; i++){
									String[] temp = tOrderStatusTag[i];
									if(tOrderStatus != null && tOrderStatus.equals(temp[0])){
						%>
										<option value="<%=temp[0]%>" selected>
										<%=temp[1]%></option>
						<%				    
									}else{
						%>
										<option value="<%=temp[0]%>" >
										<%=temp[1]%></option>
						<%			
									}
								}
							}
						%>
							
						</select>
					</TD>
				</TR>
							
				<TR height=20>
					<TD class="bg_column" align=center>集中编码</TD>
					<TD align=left class="bg_row_odd">
					<input type="text" name="concentricityid" maxlength="20" value="<%=request.getParameter("concentricityid")==null?"":request.getParameter("concentricityid")%>">				
					</TD>
					<TD class="bg_column" align=center>供应商</TD>
					<TD align=left class="bg_row_odd">
					<input type="text" name="providerId" maxlength="20" value="<%=request.getParameter("providerId")==null?"":request.getParameter("providerId")%>">
					</TD>
				</TR>	
				<TR height=20>
					<TD class="bg_column" align=center>产品分类</TD>
					<TD left=right class="bg_row_odd" colspan=3>
						<select name="manuftype1" onChange="change1(this.value)">	
						<option value="0">---一级---</option>				
						<%
							String tManufType1 = request.getParameter("manuftype1");
							//int iManuType1 = 0;
							if(tManuf1 != null && tManuf1.size() > 0 ){
							    if(tManufType1 != null){
							        //iManuType1 = Integer.parseInt(tManufType1);
							    }
								for(int i=0; i<tManuf1.size(); i++){
								    GSManufactureCategoryBean tGSManufactureBean = (GSManufactureCategoryBean)tManuf1.get(i);
								    if(tManufType1!=null && tManufType1.equals(tGSManufactureBean.getGs_manufacture_category_id())){
								        
						%>
								<option value="<%=tGSManufactureBean.getGs_manufacture_category_id()%>" selected>
								<%=tGSManufactureBean.getGs_manufacture_category_name()%></option>
						<%			        
								    }else{
						%>
								<option value="<%=tGSManufactureBean.getGs_manufacture_category_id()%>">
								<%=tGSManufactureBean.getGs_manufacture_category_name()%></option>
								
						<%			}	
								}
							}
						%>

						</select>
						<select id="manuftype2" name="manuftype2" onChange="change2(this.value)">	
						<option value="0">---二级---</option>				
						<%
							String tManufType2 = request.getParameter("manuftype2");
							if(tManufType1 != null && !tManufType1.equals("0")){
							    //int tIntManuType2 = Integer.parseInt(tManufType2);
							    ArrayList temp = (ArrayList)tMap1.get(tManufType1);
								for(int i=0; i<temp.size(); i++){
								    GSManufactureCategoryBean tGSManuf2 = (GSManufactureCategoryBean)temp.get(i);
								    if(tManufType2!=null && tManufType2.equals(tGSManuf2.getGs_manufacture_category_id())){
						%>
								<option value="<%=tManufType2%>" selected><%=tGSManuf2.getGs_manufacture_category_name()%></option>
						<%			        
								    }else{
						%>
								<option value="<%=tGSManuf2.getGs_manufacture_category_id()%>"><%=tGSManuf2.getGs_manufacture_category_name()%></option>
								
						<%			}	
								}
							}
						%>

						</select>
						<select name="manuftype3" id="manuftype3">	
						<option value="0">---三级---</option>				
						<%
							String tManufType3 = request.getParameter("manuftype3");
							if(tManufType2 != null && !tManufType2.equals("0") ){
							   // int tIntManufType3 = Integer.parseInt(tManufType3);
							    ArrayList temp = (ArrayList)tMap2.get(tManufType2);
								for(int i=0; i<temp.size(); i++){
								    GSManufactureCategoryBean tGSManuf3 = (GSManufactureCategoryBean)temp.get(i);
								    if(tManufType3!=null && tManufType3.equals(tGSManuf3.getGs_manufacture_category_id())){
						%>
								<option value="<%=tGSManuf3.getGs_manufacture_category_id()%>" selected><%=tGSManuf3.getGs_manufacture_category_name()%></option>
						<%			        
								    }else{
						%>
								<option value="<%=tGSManuf3.getGs_manufacture_category_id()%>"><%=tGSManuf3.getGs_manufacture_category_name()%></option>
								
						<%			}	
								}
							}
						%>

						</select>
					</TD>					
				</TR>								
				<TR height=20>
					<TD class="bg_column" align=center>产品信息</TD>
					<TD align=left class="bg_row_odd" colspan="3">
					<input type="text" name="manufInfo" maxlength="200" value="<%=request.getParameter("manufInfo")==null?"":request.getParameter("manufInfo")%>">（<FONT color="#ff0033">对产品名称、型号、规格、品牌、生产厂商、附加属性等关键字的模糊查询</FONT>）&nbsp;
					</TD>
				</TR>
                <%
                SimpleDateFormat bartDateFormat = new SimpleDateFormat("yyyy-MM-dd");
                Date d = new Date();
                String strNow = String.valueOf(bartDateFormat.format(d));
                long l=(long)259200*(long)10000;
                Date d2 = new Date(System.currentTimeMillis()-l);
                String strMothAgo = String.valueOf(bartDateFormat.format(d2));
                
                %>  									
				<TR height=20>	
					<TD class="bg_column" align=center>创建时间</TD>
					<TD align=left class="bg_row_odd" colspan="3">
					<input type="text"	name="firstdate" value="<%=request.getParameter("firstdate")==null?strMothAgo:request.getParameter("firstdate")%>" length="20" onfocus="setday(this)" readonly> 
					～<input type="text"	name="lastdate" length="20" value="<%=request.getParameter("lastdate")==null?strNow:request.getParameter("lastdate")%>" onfocus="setday(this)" readonly>
					</TD>
				</TR>
                <tr>
                <%
                if(tOrder != null) {
                    int totalRecords = 0;
                    if(request.getAttribute("totalRecords")!=null){
                        totalRecords=Integer.parseInt((String)request.getAttribute("totalRecords"));
                    }
                    int defaultPageSize =10;
                    if(request.getAttribute("pageSize")!=null){
                        defaultPageSize=Integer.parseInt((String)request.getAttribute("pageSize"));
                    }
                    totalRecords=tOrder.getRecordsSize();
                %>          
                <page:pager total='<%=totalRecords%>' defaultPageSize='<%=defaultPageSize%>'>
                <%tList = tOrder.getDisplayRecords(index.intValue(),pageSize.intValue()); %>
                </page:pager>
                <%} %>
               </tr>
			</table>
		</td>
	</tr>
</table>
</form>
    <p align="center">  
         <input type="button" class="kuang" value="查询" onclick="process('Q')">&nbsp;
		<input type="button" class="kuang" value="清空" onclick="process('C')"/>&nbsp;		
    </p>

<%

    if (tReQuery!=null && tReQuery.equals("true")) {
%>    
	<font size="2">数据查询中......</font>
<%
	}
	if(tOrder != null){
%>
	<center>
    <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td>
            <form name='pager' method="post">
            <input type="hidden" name="orderId" >
            <input type="hidden" name="orderCategory">            
            <input type="hidden" name="orderDept" >            
            	<table class=bg_table id=tableId	cellspacing=1 cellpadding=2 width=100% align=center border=0>
                    <tbody> 
                   
                    <tr class="bg_column" height=20> 
                    	<td>
                    	
                    	</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">送货单号</div>
						</td>                    
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">类型</div>
						</td>                    			
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">状态</div>
						</td>												
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订货单位</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">集中编码</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">产品名称</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">规格</div>
						</td>																																				
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">型号</div>
						</td>
						<td class=top align=middle> 
                        <div align="center" class="txt_content">品牌</div>
						</td>
						<td class=top align=middle> 
                        <div align="center" class="txt_content">供应商</div>
						</td>											
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">订购数量</div>
						</td>																									
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">签收数量</div>
						</td>										
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">签收价格（元）</div>
						</td>																																				
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">签收总价格（元）</div>
						</td>																																				
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">签收时间</div>
						</td>
                        <td class=top align=middle> 
                        <div align="center" class="txt_content">结算模式</div>
                        </td>	
						<td>
                    	详细
                    	</td>																																			
					</tr>
					<%

					double totSum=0;
						 if(tList != null && tList.size() > 0){
					    	for(int i=0; i<tList.size(); i++){
						       tStr = (String[])tList.get(i);
						       
						       totSum = totSum + Double.parseDouble(tStr[11]) * Double.parseDouble(tStr[12]);
						       String tTempStr="";
						       if(i%2==0){
						     	 tTempStr="class=\"bg_row_odd\"";
						        }else {
							     tTempStr="class=\"bg_row_even\"";
							}
					%>
							<tr <%=tTempStr%> height=20>
								<td class=top align=middle> 
								<%if(tStr[17].equals("2")&&tStr[18].equals("1")){  %>
									<div align="center" class="txt_content">
									 <input type="button" class="kuang" value="删除" onclick="del('<%=tStr[15]%>','<%=tStr[16]%>')">							    
									</div>
								<%} %>	
								</td>							
								<td class=top align=middle> 								
									<div align="center" class="txt_content">
									<%=tStr[0]%>
									</div>
								</td>	
								<td class=top align=middle> 								
									<div align="center" class="txt_content">
									<%=tStr[1]%>
									</div>
								</td>									
								<td class=top align=middle> 								
									<div align="center" class="txt_content">
									<%=tStr[2]%>
									</div>
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[3]%>
									</div>
								</td>														
								<td class=top align=middle > 								
									<div align="center" class="txt_content">
									<%=tStr[4]%>
									</div>
								</td>	
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<a href="<%=response.encodeURL(root + "/A100404.do?&concentricityId="+tStr[4])%>" target="_blank">
									<%=tStr[5]%>
									</a>
									</div>
								</td>				
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[6]%>
									</div>
								</td>													
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[7]%>
									</div>
								</td>
								<td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[8]%>
                                   </div>
						        </td>
						        <td class=top align=middle> 
                                   <%if(tStr[17].equals("1")){ %>
                                   <div align="center" class="txt_content">
                                         采购网仓库出货
                                   </div>
                                   <%}else{ %>
                                   <div align="center" class="txt_content">
                                    <%=tStr[9]%>
                                   </div>
                                   <%} %>
						        </td>
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[10]%><%=tStr[14]%>
									</div>
								</td>								
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[11]%><%=tStr[14]%>
									</div>
								</td>								
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[12]%>
									</div>
								</td>
                                <td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[19]%>
									</div>
								</td>																												
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<%=tStr[13]%>
									</div>
								</td>	
								<td class=top align=middle> 
                                    <div align="center" class="txt_content">
                                    <%=tStr[21]%>
                                    </div>
                                </td>
								<td class=top align=middle> 
									<div align="center" class="txt_content">
									<a href="<%= response.encodeURL(request.getContextPath() + "/A110204.do") %>?orderId=<%=tStr[15]%>&orderDetailId=<%=tStr[16]%>" target="_blank">详细</a>
									</div>
								</td>																																								
							</tr> 
					<%
						}
					%>
					      
					       <tr class="bg_column" height="20">
										<td class="top" colspan="18" nowrap="true">
											<div id="totalSum" align="right">总价:<%=StringUtils.formatEDouble(totSum,4)%> 元</div>
										</td>
						  </tr>
						  <tr class="bg_column" height=20>
						    <td width="960" height="16" colspan="18" align="right">
									<!--导航条-->
						    		<page:navigator type='text' queryForm='orderemergencyform'/>
						    </td>
						  </tr>					
				    <%
						}else{
					%>
							<font color="red">没有符合条件的产品申购单信息</font>
					<%
						}
					%>
					</tbody>
				</table>
				</form>					  
			</td>
		</tr>
	</table>
	</center>
	
	
    <form action="" name="frmtijiao" method="post">	
		<div style='display:none'>
		<%
			//if(tList != null && tList.size() > 0){
				//for(int i=0; i<tList.size(); i++){
		%>
			
		<%		
			//	}
			//}
		%>
		<input type="hidden" name="oredertempid">
		<input type="hidden" name="orderdetailid">
		
		<input type="hidden" name="goodsid">
		<input type="hidden" name="orderStatus">
		<input type="hidden" name="orderDeptId">
		<input type="hidden" name="category">
		<input type="hidden" name="concentricityid">
		<input type="hidden" name="providerId">
		<input type="hidden" name="manuftype1">
		<input type="hidden" name="manuftype2">
		<input type="hidden" name="manuftype3">
		<input type="hidden" name="manufInfo">
		<input type="hidden" name="firstdate">
		<input type="hidden" name="lastdate">
		</div>	
     </form>	
		<p align="center">  
	<%
		if(tList!= null && tList.size() > 0){
	%>
    
	<%
		}
	%>
    </p>
<%		
	}
%>
</html>